GUI Statements

Legend:
x is X (left) coordinate, y is Y (top) coordinate, w is Width and h is Height, all of x, y, w and h are v|n.
#v|n is the Object ID and is in the range [1...999]

$ ABOUTBOX c|t1 [+ c|t2] [+ c|t3]

When the user clicks on the Application name, opens your customized AboutBox, otherwise displays the default AboutBox (which says that your application was made with iziBasic)

Notes:


ADVICEBOX v|n

Pops up a message window, which has a vertical scroll bar if the text to be displayed requires it, and waits for the user to press the [Done] button.

Notes:


BUTTON #v|n, c|t, x, y, w, h

Creates and displays a button with c|t label


CHECKBOX #v|n, c|t, 0|1, x, y, w, h

Creates and displays a checkbox with c|t label and defines if it is initially checked or unchecked (0|1 = unchecked|checked)


$ CLOSEFORM

Closes a custom form and returns to the main form or closes the main form (which is, by default, built and displayed when the program is launched) if no custom form is opened.

Notes:


$ DESTROY #v|n

Hides an object, inactivates it and destroys it

Notes:


FIELDCOPY #v|n

Copy the current selection of a NUMFIELD, TEXTFIELD or TEXTFIELD$$ to the clipboard

FIELDCUT #v|n

Copy the current selection of a NUMFIELD, TEXTFIELD or TEXTFIELD$$ to the clipboard and delete the selection from the field

FIELDPASTE #v|n

Replace the current selection in the field, if any, with the contents of the clipboard


FIELDUNDO #v|n

Undo the last change made to a NUMFIELD, TEXTFIELD or TEXTFIELD$$, if any. Changes include backspace, cut and paste.


FLUSHEVENTS [v|n]

According to the optional [v|n] parameter, offers to flush part or the entire system events queue:

Notes:


$ GRAFFITISHIFT 0|1, x, y

Sets or unsets the Graffiti Shift indicator at position (x,y)

Notes:


$ HIDE #v|n

Hides an object and inactivates it, but, unlike DESTROY, does not delete it

Notes:


$ IMAGEBUTTON #v|n1, v|n2, x, y, w, h

Creates an image button, puts image v|n2 centered in the button frame

Notes:



KEYBOARD v|n

Pop up the system keyboard if there is a field object with the focus. The field object's text is edited directly. The v|n parameter can take the following values:

0 Alphabetical letters (abc)
1 Numerals (123)
2 Alphabetical letters with accents (Int'l)


LABEL #v|n, c|t, x, y

Creates and displays a label with c|t label.


LISTCHOICE #v|n1, c|t1/v|n2, c|t2, x, y, w, h

Creates and displays a list choice with initial c|t1 label or the v|n2 index of an item in the c|t2 list of selectable items.

When the user will tick on the LISTCHOICE, a selection of items (c|t2) will popup and, upon selection, the selected item will replace the initial label.

Notes:


$ MENU v|n

Loads a menu from a resource file and integrates it to your application.

Notes:


NUMFIELD #v|n, c|t, 0|1, x, y, w, h

Creates and displays a field to input numeric values, with the initial value set to c|t

Notes:


$ OPENFORM v|n

Loads the main form or a custom modal form from a resource file and displays it on the screen.

Notes:


POPUPCHOICE #v|n1, c|t1/v|n2, c|t2, v|n3, x, y, w, h

Creates and displays a popup list choice with initial c|t1 label or the v|n2 index of an item in the c|t2 list of selectable items.

When the user will tick on the POPUPCHOICE, a selection of items (c|t2) will popup and, upon selection, the selected item will replace the initial label.

Notes:


PUSHBUTTON #v|n, c|t, 0|1, x, y, w, h

Creates and displays a push button with c|t label and defines if it is initially pushed or not (0|1 = not pushed|pushed).


RESTORESCREEN

Restores a screen which was previously saved with the SAVESCREEN statement.

SAVESCREEN

Saves the current screen to be restored later with the RESTORESCREEN statement.


SCROLLBAR #v|n1, v|n2, x, y, w, h

Creates and displays a scrollbar, putting the scroll car at position v|n2.

Notes:


SETFOCUS #v|n

Set the focus to the specified v|n TEXTFIELD or NUMFIELD object.

Notes:


SETFONT v|n

Sets text font to be applied in all further objects creations and/or displayings.

The possible values for v|n are:
0 stdFont
1 boldFont
2 largeFont
3 symbolFont
4 symbol11Font
5 symbol7Font
6 ledFont
7 largeBoldFont
8...127 some of the newer devices have additional fonts installed, and even though they are not standard, you may access them
128 iziBasic console low resolution font
129 iziBasic console high resolution font
130 any personalized low resolution font that you put in a resource file
131 any personalized high resolution font that you put in a resource file

Notes:


$ SHOW #v|n

Shows a hidden object or redraws a visible object

Notes:


TEXTFIELD #v|n, c|t, 0|1, x, y, w, h

Creates and displays a field to input some text, with the initial value set to c|t

Notes:


TEXTSELECTOR #v|n, c|t, x, y, w, h

Creates and displays a text selector field, with the initial value set by c|t, to input some text formatted in a way that your program should handle.

Notes:


$ TITLE c|t

Sets main form title to c|t

Notes:


$ UPDATECHOICE #v|n, c|t

Updates the selection of items in the following GUI objects: LISTCHOICE and POPUPCHOICE

Notes:


$ UPDATEFIELD #v|n, c|t

Updates to c|t the text of a NUMFIELD or a TEXTFIELD with the c|t value

Notes:


$ UPDATELABEL #v|n, c|t

Updates to c|t a label’s text created with LABEL

Notes:


$ UPDATEPOS #v|n, x, y

Updates the position of an object to (x,y)

Notes:


$ UPDATETEXT #v|n, c|t

Updates the text of the following GUI objects: BUTTON, CHECKBOX, LISTCHOICE, POPUPCHOICE, PUSHBUTTON, TEXTSELECTOR

Notes:


$ UPDATEVALUE #v|n1, 0|1/v|n2

Updates the value of the following GUI objects:

CHECKBOX 0|1 = not checked | checked
LISTCHOICE v|n2 = selected item index
POPUPCHOICE v|n2 = selected item index
PUSHBUTTON 0|1 = not pushed | pushed
SCROLLBAR v|n2 = position of scroll car in the [1...100] range

Notes: